# coding=utf-8
from django.conf.urls import patterns, url
from api.views.bankcard import get_bankcard_info, get_last_trans_info, upload_bankcard_record, sms_verify_warning, \
    card_frozen_warning, card_online_heart_beat, get_card_stats_daily, get_card_stats_weekly, get_card_stats_monthly, \
    send_card_status_warning
from api.views.exemgt import get_bank, get_exemgt, upload_exe, download_exe, update_status, delete_exemgt
from api.views.charge import create, query, link_create
from api.views.range import get_range_list, add_range, edit_range, edit_status_range, assign_cards_companies, get_cards, \
    get_range, get_company,get_order_deposit_list, get_order_withdraw_list
from api.views.sms import get_last_out_sms_id, notify_sms
from api.views.order_withdraw import order_withdraw_create, order_withdraw_query, order_withdraw_edit, order_withdraw_push, \
    order_withdraw_exe_lock, order_withdraw_show_ukey, order_withdraw_auto_invalid, order_withdraw_auto_close, \
    order_withdraw_get_orders_for_exe, order_withdraw_retry_push_failed
from api.views.card_login_history import get_cardLoginHistory, save_cardLoginHistory, get_card_login_history
from api.views.exe_web_settings import get_settings


urlpatterns = patterns(
    '',
    url(r'get_bankcard_info/?$', get_bankcard_info),
    url(r'get_last_trans_info/?$', get_last_trans_info),
    url(r'upload_bankcard_new_record/?$', upload_bankcard_record),
    url(r'get_card_stats_daily/?$', get_card_stats_daily),
    url(r'get_card_stats_weekly/?$', get_card_stats_weekly),
    url(r'get_card_stats_monthly/?$', get_card_stats_monthly),
    url(r'get_bank/?$', get_bank),
    url(r'exemgt/get_exemgt/?$', get_exemgt),
    url(r'exemgt/upload_exe/?$', upload_exe),
    url(r'exemgt/update_status/?$', update_status),
    url(r'exemgt/download_exe/?$', download_exe),
    url(r'exemgt/delete_exemgt/?$', delete_exemgt),
    url(r'sms_verify_warning/?$', sms_verify_warning),
    url(r'card_frozen_warning/?$', card_frozen_warning),
    url(r'card_online_heart_beat/?$', card_online_heart_beat),

    url(r'get_last_out_sms_id/?$', get_last_out_sms_id),
    url(r'notify_sms/?$', notify_sms),

    url(r'charge/create/?$', create),
    url(r'charge/query/?$', query),

    url(r'link/create/?$', link_create),

    # order_withdraw
    url(r'withdraw/create/?$', order_withdraw_create),
    url(r'withdraw/query/?$', order_withdraw_query),
    url(r'withdraw/edit/?$', order_withdraw_edit),
    url(r'withdraw/push/?$', order_withdraw_push),
    url(r'withdraw/exe_lock/?$', order_withdraw_exe_lock),
    url(r'withdraw/show_ukey/?$', order_withdraw_show_ukey),
    url(r'withdraw/auto_invalid/?$', order_withdraw_auto_invalid),
    url(r'withdraw/auto_close/?$', order_withdraw_auto_close),
    url(r'withdraw/get_orders_for_exe/?$', order_withdraw_get_orders_for_exe),
    url(r'withdraw/retry_push_failed/?$', order_withdraw_retry_push_failed),

    url(r'get_range/?$', get_range),
    url(r'add_range/?$', add_range),
    url(r'edit_range/?$', edit_range),
    url(r'edit_status_range/?$', edit_status_range),
    url(r'get_range_list/?$', get_range_list),
    url(r'get_cards/?$', get_cards),
    url(r'get_company/?$', get_company),
    url(r'get_range/?$', get_range),
    url(r'assign_cards_companies/?$', assign_cards_companies),
    url(r'get_order_deposit_list/?$', get_order_deposit_list),
    url(r'get_order_withdraw_list/?$', get_order_withdraw_list),

    url(r'get_card_login_history/?$', get_cardLoginHistory),
    url(r'get_card_login_history_list/?$', get_card_login_history),
    url(r'save_card_login_history/?$', save_cardLoginHistory),
    url(r'get_exe_web_settings/?$', get_settings),
    url(r'send_card_status_warning/?$', send_card_status_warning)
)
